class HomePage extends eui.Component implements  eui.UIComponent {

	private particle1:eui.Group;
	private demp:eui.Group;
	private day:eui.BitmapLabel;
	private times:eui.BitmapLabel;
	public constructor() {
		super();
	}

	protected partAdded(partName:string,instance:any):void
	{
		super.partAdded(partName,instance);
	}


	protected childrenCreated():void
	{
		super.childrenCreated();
		this.particles();
		//帧监听 改变时间显示
		SceneManager.instance.mainScene.addEventListener(egret.Event.ENTER_FRAME,()=>{
			let noTime = SK_GLOBAL.dateFtt("yyyy-MM-dd hh:mm:ss",new Date);
		
			let showTime = SK_GLOBAL.timerOver('2019-06-21 21:00:00',noTime);
			this.day.text = showTime.split('/ ')[0];
			this.times.text = showTime.split('/ ')[1];
		},this);
	}
	

	//执行粒子动画
	private particles():void{
		SK_GLOBAL.creatParticle('particle',this,320,400);
	}

}